package org.itstack.chain;

/**
 * 审批结果对象
 * 包含审批结果和相关信息
 */
public class ApprovalResult {
    
    private boolean approved;
    private String approver;
    private String reason;
    private long timestamp;
    
    public ApprovalResult(boolean approved, String approver, String reason) {
        this.approved = approved;
        this.approver = approver;
        this.reason = reason;
        this.timestamp = System.currentTimeMillis();
    }
    
    // Getters
    public boolean isApproved() {
        return approved;
    }
    
    public String getApprover() {
        return approver;
    }
    
    public String getReason() {
        return reason;
    }
    
    public long getTimestamp() {
        return timestamp;
    }
    
    @Override
    public String toString() {
        return "ApprovalResult{" +
                "approved=" + approved +
                ", approver='" + approver + '\'' +
                ", reason='" + reason + '\'' +
                ", timestamp=" + timestamp +
                '}';
    }
}
